#if !defined(AFX_VIDEOBAR_H__5B646FC1_4694_11D4_9EF2_00201857C47B__INCLUDED_)
#define AFX_VIDEOBAR_H__5B646FC1_4694_11D4_9EF2_00201857C47B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VideoBar.h : header file
//

#include "DDVideo.h"	// CDDVideo
#include "RTPVideo.h"	// CRTPVideo

/////////////////////////////////////////////////////////////////////////////
// CVideoBar dialog
class CVideoBar : public CXTDockWindow
{
	DECLARE_DYNAMIC(CVideoBar)

// Construction
public:
	CVideoBar();   // standard constructor
	~CVideoBar();

	BOOL Create( CWnd* pParentWnd, LPCTSTR lpszCaption=NULL, 
		CSize size=CSize(160,120), DWORD dwStyle=CBRS_LEFT, DWORD dwBarStyle=CBRS_XT_DEFAULT);

	void Config(CUsuario *pUsuario);//, DWORD dwWidth, DWORD dwHeight, WORD wBits, WORD wNumPixels, RGBQUAD *pPaleta);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVideoBar)
	//}}AFX_VIRTUAL

	BOOL AddUsuario(CUsuario *pUsuario);//, DWORD dwWidth, DWORD dwHeight, WORD wBits, WORD wNumPixels, RGBQUAD *pPaleta);
	BOOL DelUsuario(CUsuario *pUsuario);
	// Implementation
protected:
	void Reordena();
	CTypedPtrMap<CMapStringToPtr, CString, CStatic *> m_mapStatic;
	CTypedPtrMap<CMapStringToPtr, CString, CDDVideo *> m_mapDDVideo;
//	CTypedPtrMap<CMapStringToPtr, CString, RTP_VIDEO_CONFIG *> m_mapRTPConfig;
//	CDDVideo m_ddVideo;
//	RTP_VIDEO_CONFIG *m_pVideoConfig;	// formato actual de la frame
	
	// Generated message map functions
	//{{AFX_MSG(CVideoBar)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	//}}AFX_MSG
public:
//	afx_msg LRESULT OnVideoSquare(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnVideoFrame(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnRX(WPARAM wParam, LPARAM lParam);
//	afx_msg LRESULT OnConfig(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

inline BOOL CVideoBar::Create( CWnd* pParentWnd, LPCTSTR lpszCaption, CSize size, DWORD dwStyle, DWORD dwBarStyle){
	return CXTDockWindow::Create(pParentWnd, ID_VIEW_VIDEO, lpszCaption, size, dwStyle, dwBarStyle);
}
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VIDEOBAR_H__5B646FC1_4694_11D4_9EF2_00201857C47B__INCLUDED_)
